import request from '@/utils/request'


// 公域用户数统计信息
// export function userCountInfo({businessId, data}) {
//   return request({
//     url: `/business_admin/pubDomainUser/userCountInfo`,
//     method: 'post',
//     data: data,
//     headers: {businessId}
//   })
// }


// 门店列表
export function getPubShopList(data) {
	// if (!data.shopId && store.getters.userShopId) {
	// 	data.shopId = store.getters.userShopId
	// }
	return request({
		url: '/business_admin/pubDomainShop/list',
		method: 'post',
		data: data
	})
}
//门店编辑详情
export function getPubDomainShop(shopId) {
	return request({
		url: 'business_admin/pubDomainShop/getPubDomainShopById?pubDomainShopId=' + shopId,
		method: 'get'
	})
}
//更新门店
export function updatePubShop(data) {
	return request({
		url: 'business_admin/pubDomainShop/updateShopStatus',
		method: 'post',
		data: data
	})
}
//获取商户营业执照
export function getFHBShopCertificates(params) {
  return request({
    url: '/business_admin/pubDomainShop/getFHBShopCertificates?storeId='+ params.storeId,
    method: 'get',
    params: {}
  })
}
//获取商户详情
export function getDetail(data) {
	return request({
		url: '/business_admin/pubDomainBusiness/getDetail?id='+data.id,
		method: 'get',
		data: data
	})
}
//更新商户信息
export function updatePubDomainBusiness(data) {
	return request({
		url: '/business_admin/pubDomainBusiness/updatePubDomainBusiness?pubDomainBusinessId='+data.pubDomainBusinessId,
		method: 'post',
		data: data
	})
}
